package neuroBot.hh;

import neuroPoker.poker.Tisch;
import neuroPoker.poker.Enums.Stages;
import eleTrain.eleDBReader.EleHHParty;

public class HHParty extends EleHHParty {

	public HHParty(String hh, Tisch tisch) {
		super(hh, tisch);
		parseGameNo();
	}

	public Stages getStage() {
		if (tischKarten.size() == 5)
			return Stages.river;
		if (tischKarten.size() == 4)
			return Stages.turn;
		if (tischKarten.size() == 3)
			return Stages.flop;

		return Stages.preFlop;
	}

	@Override
	protected boolean handleError(String errMsg) {
		System.err.println("HHParty: " + errMsg);
		System.err.println(hh);
		return true;
	}

}
